package com.luckdraw.domain;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

/**
 * 活动设置
 * @ClassName: LuckDrawSet 
 * @author gaotaochen
 * @Description: 
 * @date 2017年1月17日 上午10:39:17 
 *
 */
@Table("LuckDraw_Activity")
public class Activity {
	
	/**
	 * ID
	 */
	@Id
//	@Id(auto=false)
//	@Prev(@SQL(value="select LuckDraw_Activity_SEQ.Nextval from dual",db=DB.ORACLE))
	@ColDefine(width=10,precision=0)
	private int id;
	
	/**
	 * 奖池大小
	 */
	@Column("pool_size")
	@ColDefine(width=10,precision=0)
	private int size;
	
	/**
	 * 盈利人数
	 */
	@Column("profitable")
	@ColDefine(width=10,precision=0)
	private int profitable;
	
	/**
	 * 参与成本
	 */
	@Column("cost")
	@ColDefine(width=10,precision=0)
	private int cost;
	
	/**
	 * 佣金比例
	 */
	@Column("commission_rate")
	@ColDefine(width=10,precision=2)
	private double commissionRate;
	
	/**
	 * 最小获奖比例
	 */
	@Column("minimum_return_ratio")
	@ColDefine(width=10,precision=2)
	private double minimumReturnRatio;
	
	/**
	 * 最高获奖比例
	 */
	@Column("maximum_yield_ratio")
	@ColDefine(width=10,precision=2)
	private double maximumYieldRatio;
	
	/**
	 * 是否上线 0未上线，1已上线
	 */
	@Column("status")
	@ColDefine(width=10,precision=0)
	private int status;
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

	public int getProfitable() {
		return profitable;
	}

	public void setProfitable(int profitable) {
		this.profitable = profitable;
	}

	public int getCost() {
		return cost;
	}

	public void setCost(int cost) {
		this.cost = cost;
	}

	public double getCommissionRate() {
		return commissionRate;
	}

	public void setCommissionRate(double commissionRate) {
		this.commissionRate = commissionRate;
	}

	public double getMinimumReturnRatio() {
		return minimumReturnRatio;
	}

	public void setMinimumReturnRatio(double minimumReturnRatio) {
		this.minimumReturnRatio = minimumReturnRatio;
	}

	public double getMaximumYieldRatio() {
		return maximumYieldRatio;
	}

	public void setMaximumYieldRatio(double maximumYieldRatio) {
		this.maximumYieldRatio = maximumYieldRatio;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}
	
}
